package routers

import (
	"gin-mvc/controllers"
	apiv1 "gin-mvc/controllers/api/v1"
	"github.com/gin-gonic/gin"
)

func InitTestRouter(router *gin.Engine) {
	v1 := router.Group("/api/v1/test")
	{
		v1.Any("/index", func(context *gin.Context) {
			registerTestController(context).Index()
		})
	}
}

func registerTestController(context *gin.Context) *apiv1.TestController {
	return &apiv1.TestController{BaseController: controllers.BaseController{Ctx: context}}
}
